home *** CD-ROM | disk | FTP | other *** search
/ ArtWorks - Encore: Education 2 / ArtWorks - Encore: Education 2.iso / pc / EDUCATION II Catalog / Extensis Portfolio Browser / filters / Impsi2.flt / PSIRC / SYSTEM < prev   
Text File  |  1998-04-19  |  21KB  |  489 lines

  1. %**********************************************************************/
  2. %*                                                                    */
  3. %*  Copyright (C) 1993-1997                                           */
  4. %*  by Liberty Systems, Redlands, CA.  All rights reserved.           */
  5. %*                                                                    */
  6. %*  This program is the exclusive property of Liberty Systems and is  */
  7. %*  issued in strict confidence under a prearranged license agreement */
  8. %*  and is not to be disclosed in any manner to persons outside the   */
  9. %*  licensed organization and shall not be reproduced or disseminated */
  10. %*  in whole or part to anyone outside the licensed organization      */
  11. %*  without the prior written approval of Liberty Systems unless      */
  12. %*  otherwise provided for by such license agreement.                 */
  13. %*                                                                    */
  14. %*  This program may be used and copied only in accordance with the   */
  15. %*  terms of said license agreement and with the inclusion of the     */
  16. %*  above copyright notice.  No title to and ownership of the         */
  17. %*  software is hereby transfered.  The information in this software  */
  18. %*  is subject to change without notice and should not be construed   */
  19. %*  as a commitment by Liberty Systems.                               */
  20. %*                                                                    */
  21. %**********************************************************************/
  22.  
  23. false limitaccess
  24. /@bd { bind def } bind def
  25.  
  26. %
  27. %  Initialize the error handling
  28. %
  29.  
  30. /$error <<
  31.    /newerror false
  32.    /recordstacks true
  33.    /binary false
  34. >> def
  35.  
  36. /@err_name 20 string def
  37. /@ostack 10 array def
  38. /@estack 250 array def
  39. /@dstack 20 array def
  40. /@err_file (%stderr) (w) file def
  41.  
  42. /@std_ehandler {
  43.    currentfile resetfile
  44.    false setglobal
  45.    $error begin
  46.    /newerror true def
  47.    /errorname exch def
  48.    /command exch def
  49.    @ostack length count lt {@ostack length}{count}ifelse
  50.      @ostack exch 0 exch getinterval astore /ostack exch def
  51.      ostack aload pop
  52.    @estack execstack /estack exch def
  53.    @dstack dictstack /dstack exch def
  54.    end stop } @bd
  55.  
  56. /errordict <<
  57.    /handleerror {
  58.       signalerror
  59.       @err_file (Error Type:     ) writestring
  60.       @err_file $error /errorname get @err_name cvs writestring
  61.       @err_file (\nCurrent Object: ) writestring
  62.       $error /command get =
  63. %     @err_file (Operand Stack: ) writestring
  64. %     $error /ostack get ==
  65. %     @err_file (Execution Stack: ) writestring
  66. %     $error /estack get ==
  67. %     @err_file (Dictionary Stack: ) writestring
  68. %     $error /dstack get ==
  69.       $error /newerror false put }
  70.    /configurationerror { /configurationerror @std_ehandler }
  71.    /dictfull { /dictfull @std_ehandler }
  72.    /dictstackoverflow { /dictstackoverflow @std_ehandler }
  73.    /dictstackunderflow { /dictstackunderflow @std_ehandler }
  74.    /execstackoverflow { /execstackoverflow @std_ehandler }
  75.    /interrupt { /interrupt @std_ehandler }
  76.    /invalidaccess { /invalidaccess @std_ehandler }
  77.    /invalidcontext { /invalidcontext @std_ehandler }
  78.    /invalidexit { /invalidcontext @std_ehandler }
  79.    /invalidfileaccess { /invalidfileaccess @std_ehandler }
  80.    /invalidfont { /invalidfont @std_ehandler }
  81.    /invalidid { /invalidid @std_ehandler }
  82.    /invalidrestore { /invalidrestore @std_ehandler }
  83.    /ioerror { /ioerror @std_ehandler }
  84.    /limitcheck { /limitcheck @std_ehandler }
  85.    /nocurrentpoint { /nocurrentpoint @std_ehandler }
  86.    /rangecheck { /rangecheck @std_ehandler }
  87.    /stackoverflow { /stackoverflow @std_ehandler }
  88.    /stackunderflow { /stackunderflow @std_ehandler }
  89.    /syntaxerror { /syntaxerror @std_ehandler }
  90.    /timeout { /timeout @std_ehandler }
  91.    /typecheck { /typecheck @std_ehandler }
  92.    /undefined { /undefined @std_ehandler }
  93.    /undefinedfilename { /undefinedfilename @std_ehandler }
  94.    /undefinedresource { /undefinedresource @std_ehandler }
  95.    /undefinedresult { /undefinedresult @std_ehandler }
  96.    /unmatchedmark { /unmatchedmark @std_ehandler }
  97.    /unregistered { /unregistered @std_ehandler }
  98.    /VMerror { /VMerror @std_ehandler }
  99.    /sysmem { /sysmem @std_ehandler } >> def
  100.  
  101. %
  102. %  Initialize encodings
  103. %
  104.  
  105. /StandardEncoding [/.notdef 31{dup}repeat/space/exclam 
  106.    /quotedbl/numbersign/dollar/percent/ampersand/quoteright/parenleft 
  107.    /parenright/asterisk/plus/comma/hyphen/period/slash/zero/one/two/three
  108.    /four/five/six/seven/eight/nine/colon/semicolon/less/equal/greater
  109.    /question/at/A/B/C/D/E/F/G/H/I/J/K/L/M/N/O/P/Q/R/S/T/U/V/W/X/Y/Z
  110.    /bracketleft/backslash/bracketright/asciicircum/underscore/quoteleft/a/b 
  111.    /c/d/e/f/g/h/i/j/k/l/m/n/o/p/q/r/s/t/u/v/w/x/y/z/braceleft/bar/braceright 
  112.    /asciitilde/.notdef 33{dup}repeat/exclamdown/cent/sterling/fraction/yen
  113.    /florin/section/currency/quotesingle/quotedblleft/guillemotleft
  114.    /guilsinglleft/guilsinglright/fi/fl/.notdef/endash/dagger/daggerdbl
  115.    /periodcentered/.notdef/paragraph/bullet/quotesinglbase/quotedblbase
  116.    /quotedblright/guillemotright/ellipsis/perthousand/.notdef/questiondown
  117.    /.notdef/grave/acute/circumflex/tilde/macron/breve/dotaccent/dieresis
  118.    /.notdef/ring/cedilla/.notdef/hungarumlaut/ogonek/caron/emdash/.notdef
  119.    15{dup}repeat/AE/.notdef/ordfeminine/.notdef/.notdef/.notdef/.notdef
  120.    /Lslash/Oslash/OE/ordmasculine/.notdef 4{dup}repeat/ae/.notdef/.notdef
  121.    /.notdef/dotlessi/.notdef/.notdef/lslash/oslash/oe/germandbls/.notdef
  122.    /.notdef/.notdef/.notdef] def
  123. /ISOLatin1Encoding [ StandardEncoding 0 128 getinterval aload pop
  124.    83 -1 roll pop /minus 83 1 roll
  125.    /.notdef 15{dup}repeat/dotlessi/grave/acute/circumflex/tilde/macron
  126.    /breve/dotaccent/dieresis/.notdef/ring/cedilla/.notdef/hungarumlaut
  127.    /ogonek/caron/space/exclamdown/cent/sterling/currency/yen/brokenbar
  128.    /section/dieresis/copyright/ordfeminine/guillemotleft/logicalnot/hyphen
  129.    /registered/macron/degree/plusminus/twosuperior/threesuperior/acute/mu
  130.    /paragraph/periodcentered/cedilla/onesuperior/ordmasculine/guillemotright
  131.    /onequarter/onehalf/threequarters/questiondown/Agrave/Aacute/Acircumflex
  132.    /Atilde/Adieresis/Aring/AE/Ccedilla/Egrave/Eacute/Ecircumflex/Edieresis
  133.    /Igrave/Iacute/Icircumflex/Idieresis/Eth/Ntilde/Ograve/Oacute/Ocircumflex
  134.    /Otilde/Odieresis/multiply/Oslash/Ugrave/Uacute/Ucircumflex/Udieresis
  135.    /Yacute/Thorn/germandbls/agrave/aacute/acircumflex/atilde/adieresis/aring
  136.    /ae/ccedilla/egrave/eacute/ecircumflex/edieresis/igrave/iacute
  137.    /icircumflex/idieresis/eth/ntilde/ograve/oacute/ocircumflex/otilde
  138.    /odieresis/divide/oslash/ugrave/uacute/ucircumflex/udieresis/yacute
  139.    /thorn/ydieresis] def
  140. /SymbolEncoding [ StandardEncoding 0 32 getinterval aload pop
  141.    /space/exclam/universal/numbersign/existential/percent/ampersand/suchthat
  142.    /parenleft/parenright/asteriskmath/plus/comma/minus/period/slash/zero/one
  143.    /two/three/four/five/six/seven/eight/nine/colon/semicolon/less/equal
  144.    /greater/question/congruent/Alpha/Beta/Chi/Delta/Epsilon/Phi/Gamma/Eta
  145.    /Iota/theta1/Kappa/Lambda/Mu/Nu/Omicron/Pi/Theta/Rho/Sigma/Tau/Upsilon
  146.    /sigma1/Omega/Xi/Psi/Zeta/bracketleft/therefore/bracketright
  147.    /perpendicular/underscore/radicalex/alpha/beta/chi/delta/epsilon/phi/gamma
  148.    /eta/iota/phi1/kappa/lambda/mu/nu/omicron/pi/theta/rho/sigma/tau/upsilon
  149.    /omega1/omega/xi/psi/zeta/braceleft/bar/braceright/similar/.notdef
  150.    33{dup}repeat/Upsilon1/minute/lessequal/fraction/infinity/florin/club
  151.    /diamond/heart/spade/arrowboth/arrowleft/arrowup/arrowright/arrowdown
  152.    /degree/plusminus/second/greaterequal/multiply/proportional/partialdiff
  153.    /bullet/divide/notequal/equivalence/approxequal/ellipsis/arrowvertex
  154.    /arrowhorizex/carriagereturn/aleph/Ifraktur/Rfraktur/weierstrass
  155.    /circlemultiply/circleplus/emptyset/intersection/union/propersuperset
  156.    /reflexsuperset/notsubset/propersubset/reflexsubset/element/notelement
  157.    /angle/gradient/registerserif/copyrightserif/trademarkserif/product
  158.    /radical/dotmath/logicalnot/logicaland/logicalor/arrowdblboth
  159.    /arrowdblleft/arrowdblup/arrowdblright/arrowdbldown/lozenge/angleleft
  160.    /registersans/copyrightsans/trademarksans/summation/parenlefttp
  161.    /parenleftex/parenleftbt/bracketlefttp/bracketleftex/bracketleftbt
  162.    /bracelefttp/braceleftmid/braceleftbt/braceex/.notdef/angleright/integral
  163.    /integraltp/integralex/integralbt/parenrighttp/parenrightex/parenrightbt
  164.    /bracketrighttp/bracketrightex/bracketrightbt/bracerighttp/bracerightmid
  165.    /bracerightbt/.notdef] def
  166.  
  167. %
  168. %  Initialize the resources
  169. %
  170.  
  171. /@defres { dup type .rd/InstanceType get ne { errordict /typecheck get exec } if
  172.    .rd/Instances get 3 1 roll dup 4 1 roll put } @bd
  173. /@udefres { .rd/Instances get exch undef } @bd
  174. /@fndres { .rd/Instances get exch get } @bd
  175. /@resstt { .rd/Instances get exch known dup { 0 -1 3 -1 roll } if } @bd
  176. /@resfor { .rd/Instances get {pop 3 index wild {2 index exec} {pop} ifelse}
  177.       forall pop pop pop } @bd
  178. /@generic { /DefineResource {@defres} /UndefineResource {@udefres}
  179.        /FindResource {@fndres} /ResourceStatus {@resstt}
  180.        /ResourceForAll {@resfor} /ResourceFileName {@resnam}
  181.        /Catagory } @bd
  182. /@fnt_defres { dup /FontName 3 index put dup /FID 1 put readonly @defres } @bd
  183. /@fnt_fndres { dup .rd/Instances get exch known {@fndres}
  184.    {dup fontcheck {dup fontload @fndres}
  185.    {/Courier eq {errordict /invalidfont get exec}if /Courier
  186.     @fnt_fndres}ifelse} ifelse } @bd
  187. /@fnt_setup { /DefineResource {@fnt_defres} /UndefineResource {@udefres}
  188.        /FindResource {@fnt_fndres} /ResourceStatus {@resstt}
  189.        /ResourceForAll {@resfor} /ResourceFileName {@resnam}
  190.        /Catagory } @bd
  191.  
  192. /FontDirectory <<>> def
  193. /SharedFontDirectory FontDirectory def
  194. /GlobalFontDirectory FontDirectory def
  195. true setglobal
  196.  
  197. /@catagory <<
  198.    /Font << @fnt_setup /Font /InstanceType /dicttype /Instances FontDirectory >>
  199.    /Encoding << @generic /Encoding /InstanceType /arraytype /Instances
  200.       << /StandardEncoding StandardEncoding /ISOLatin1Encoding
  201.      ISOLatin1Encoding >> >>
  202.    /Form << @generic /Form /InstanceType /dicttype /Instances << >> >>
  203.    /Pattern << @generic /Pattern /InstanceType /dicttype /Instances << >> >>
  204.    /ProcSet << @generic /ProcSet /InstanceType /dicttype /Instances << >> >>
  205.    /ColorSpace << @generic /ColorSpace /InstanceType /arraytype /Instances
  206.       << >> >>
  207.    /Halftone << @generic /Halftone /InstanceType /dicttype /Instances << >> >>
  208.    /ColorRendering << @generic /ColorRendering /InstanceType /dicttype
  209.       /Instances << >> >>
  210.  
  211.    /Filter << @generic /Filter /InstanceType /nametype /Instances
  212.       << /ASCIIHexEncode dup /ASCIIHexDecode dup /ASCII85Encode dup
  213.      /ASCII85Decode dup /LZWEncode dup /LZWDecode dup
  214.      /RunLengthEncode dup /RunLengthDecode dup /CCITTFaxEncode dup
  215.      /CCITTFaxDecode dup /DCTEncode dup /DCTDecode dup
  216.      /NullEncode dup /SubFileDecode dup >> >>
  217.    /ColorSpaceFamily << @generic /ColorSpaceFamily /InstanceType /nametype
  218.       /Instances << /DeviceGray dup /DeviceRGB dup /DeviceCMYK dup
  219.      /CIEBasedABC dup /CIEBasedA dup /Pattern dup /Indexed dup
  220.      /Separation dup >> >>
  221.    /Emulator << @generic /Emulator /InstanceType /nametype /Instances << >> >>
  222.    /IODevice << @generic /IODevice /InstanceType /nametype /Instances << >> >>
  223.    /ColorRenderingType << @generic /ColorRenderingType /InstanceType
  224.       /integertype /Instances << >> >>
  225.    /FMapType << @generic /FMapType /InstanceType /integertype /Instances
  226.       << >> >>
  227.    /FontType << @generic /FontType /InstanceType /integertype /Instances
  228.       << 0 dup 1 dup 3 dup >> >>
  229.    /FormType << @generic /FormType /InstanceType /integertype /Instances
  230.       << >> >>
  231.    /HalftoneType << @generic /HalftoneType /InstanceType /integertype
  232.       /Instances << >> >>
  233.    /ImageType << @generic /ImageType /InstanceType /integertype /Instances
  234.       << >> >>
  235.    /PatternType << @generic /PatternType /InstanceType /integertype /Instances
  236.       << >> >>
  237.  
  238.    /Catagory << @generic /Catagory /InstanceType /dicttype >>
  239.    /Generic << @generic /Generic >>
  240. >> def
  241.  
  242. @catagory /Catagory get /Instances @catagory put
  243.  
  244. false setglobal
  245.  
  246. %
  247. %  Initialize the resource tokens
  248. %
  249.  
  250. /@resbegin { @catagory exch get /.rd exch def } @bd
  251. /defineresource { false limitaccess @resbegin .rd/DefineResource get exec true limitaccess } @bd
  252. /undefineresource { false limitaccess @resbegin .rd/UndefineResource get exec true limitaccess } @bd
  253. /findresource { false limitaccess @resbegin .rd/FindResource get exec true limitaccess } @bd
  254. /resourcestatus { false limitaccess @resbegin .rd/ResourceStatus get exec true limitaccess } @bd
  255. /resourceforall { false limitaccess @resbegin .rd/ResourceForAll get exec true limitaccess } @bd
  256.  
  257. %
  258. %  Define font related tokens
  259. %
  260.  
  261. /@mtx1 matrix def
  262. /@mtx2 matrix def
  263. /@fakefont { <<
  264.    /FontName 5 -1 roll /FontMatrix 6 -1 roll /UniqueID 7 -1 roll
  265.    /UniqID 1 index
  266.    /FontInfo <<
  267.       /version () /Notice () /FullName () /Weight () /ItalicAngle 0
  268.       /isFixedPitch false /UnderlinePosition 0 /UnderlineThickness 20 >>
  269.    /Encoding 13 -1 roll {SymbolEncoding}{StandardEncoding}ifelse
  270.    /PaintType 0
  271.    /FontType 1 /Device true /FontBBox {0 0 1000 1000} /Metrics <<>>
  272.    /StrokeWidth 0 /Private <<>> /CharStrings <</space {}>> /FID 1 >>
  273.    dup /FontName get exch definefont pop } @bd
  274. /@val_font { type /dicttype eq not
  275.    { errordict /typecheck get exec } if } @bd
  276.  
  277. /scalefont { 1 index @val_font exch 1 dict copy dup dup /FontMatrix get
  278.    @mtx1 copy 4 -1 roll dup @mtx2 scale matrix concatmatrix
  279.    /FontMatrix exch put } @bd
  280. /makefont { 1 index @val_font exch 1 dict copy dup dup /FontMatrix get
  281.    @mtx1 copy 4 -1 roll matrix concatmatrix /FontMatrix exch put } @bd
  282. /findfont { /Font findresource } @bd
  283. /definefont { /Font defineresource } @bd
  284. /undefinefont { /Font undefineresource } @bd
  285.  
  286. %
  287. %  Initialize some tokens
  288. %
  289.  
  290. /@savglob false def
  291. /@cachelimit 250 def
  292. /@cachesize 100000 def
  293. /@cachelower 25 def
  294. /@ucachelimit 0 def
  295. /@packing false def
  296. /@ismatrix {dup type /arraytype eq
  297.   {dup length 6 eq{
  298.     /@ismtx true def
  299.     {dup type /realtype eq exch type /integertype eq or not
  300.     {/@ismtx false def exit}if}forall
  301.     @ismtx}
  302.     {pop false}ifelse}{pop false}ifelse} @bd
  303. /@drawrect
  304.   {4 -2 roll moveto 1 index 0 rlineto 0 exch rlineto
  305.    neg 0 rlineto closepath} @bd
  306.  
  307. /prompt { (PS> ) print flush } @bd
  308. /handleerror { errordict /handleerror get exec } @bd
  309. /execuserobject { userdict /UserObjects get exch get exec } @bd
  310. /undefineuserobject { userdict /UserObjects get exch null put } @bd
  311. /defineuserobject { 1 index 0 lt { errordict /rangecheck get exec } if
  312.    systemdict /@savglob currentglobal put false setglobal
  313.    userdict /UserObjects 2 copy known not
  314.       { 2 copy 5 index 99 add 100 idiv 100 mul array put } if
  315.    get dup length 3 index exch ge
  316.       { 2 index 99 add 100 idiv 100 mul array exch 1 index copy pop
  317.     dup userdict /UserObjects 3 -1 roll put } if
  318.    3 1 roll put
  319.    systemdict /@savglob get setglobal } @bd
  320. /findencoding { /Encoding findresource } @bd
  321. /version (54.0) def
  322. /languagelevel 2 def
  323. /product (Liberty Systems - PSI) def
  324. /revision 320 def
  325. /start { product print (    Revision: ) print revision 100 div
  326.       @err_name cvs print (\n) print
  327.    (Copyright (C) 1993-1997 Liberty Systems, Redlands, CA.\n) print
  328.    (All rights reserved.\n) print } @bd
  329. /setgray { /DeviceGray setcolorspace setcolor } @bd
  330. /setrgbcolor { /DeviceRGB setcolorspace setcolor } @bd
  331. /setcmykcolor { /DeviceCMYK setcolorspace setcolor } @bd
  332. /showpage { copypage erasepage } @bd
  333. /currentscreen { currentcolorscreen 12 3 roll 9 { pop } repeat } @bd
  334. /setscreen { 3 { 3 copy } repeat setcolorscreen
  335.    currentscreen 3 1 roll pop pop
  336.    -.5 -.5 2 index exec pop
  337.     .5 -.5 2 index exec pop
  338.    -.5  .5 2 index exec pop
  339.     .5  .5 2 index exec pop pop } @bd
  340. 20 0 {pop} setscreen
  341. /strokepath {} @bd
  342. /echo {pop} @bd
  343. /initgraphics { initmatrix newpath initclip 1 setlinewidth 0 setlinecap
  344.    0 setlinejoin [] 0 setdash 0 setgray 10 setmiterlimit } @bd
  345. /setcachelimit { dup type /integertype eq { systemdict begin /@cachelimit exch def end}
  346.    { errordict /typecheck get exec } ifelse } @bd
  347. /cachestatus {systemdict begin 0 @cachesize 0 40 0 500 @cachelimit end} @bd
  348. /setcacheparams {
  349.    systemdict begin
  350.    dup type /marktype ne {/@cachelimit exch def}if
  351.    dup type /marktype ne {/@cachelower exch def}if
  352.    dup type /marktype ne {/@cachesize exch def}if
  353.    cleartomark end} @bd
  354. /currentcacheparams {systemdict begin
  355.    mark @cachesize @cachelower @cachelimit end} @bd
  356. /setucacheparams {
  357.    dup type /marktype ne {/@ucachelimit exch def}if
  358.    cleartomark} @bd
  359. /ucachestatus {mark 0 0 0 0 @ucachelimit} @bd
  360. /setcachedevice { 4{pop}repeat setcharwidth } @bd
  361. /setcachedevice2 { 8{pop}repeat setcharwidth } @bd
  362. /execform { gsave dup /Matrix get concat
  363.    dup /BBox get aload pop exch 3 index sub exch 2 index sub
  364.    rectclip dup /PaintProc get exec grestore } @bd
  365. /selectfont { dup type /arraytype eq
  366.    {exch findfont exch makefont setfont}
  367.    {exch findfont exch scalefont setfont} ifelse } @bd
  368. /ucache {} @bd
  369. /setshared {setglobal} @bd
  370. /currentshared {currentglobal} @bd
  371. /ufill {gsave newpath uappend fill grestore} @bd
  372. /ueofill {gsave newpath uappend eofill grestore} @bd
  373. /ustroke {gsave newpath dup @ismatrix{exch uappend concat}
  374.   {uappend}ifelse stroke grestore} @bd
  375. /ustrokepath {newpath dup @ismatrix
  376.   {exch uappend matrix currentmatrix exch concat strokepath setmatrix}
  377.   {newpath uappend strokepath}ifelse} @bd
  378. /upath {[exch{/ucache cvx}if pathbbox/setbbox cvx
  379.   {/moveto cvx}{/lineto cvx}{/curveto cvx}{/closepath cvx}pathforall]cvx} @bd
  380. /uappend {dup type /arraytype eq exch dup type /packedarraytype eq 3 -1 roll
  381.   or not {errordict /typecheck get exec}if dup length 2 eq
  382.   {uappendencoded}{systemdict begin cvx exec end}ifelse} @bd
  383. /packedarray {array astore readonly} @bd
  384. /setpacking {systemdict begin /@packing exch def end} @bd
  385. /setpacking {systemdict begin /@packing exch def end} @bd
  386. /currentpacking {systemdict /@packing get} @bd
  387. /printobject {(%stdout)(w)file 3 1 roll writeobject} @bd
  388. /setpagedevice {pop} @bd
  389. /currentdevparams {pop <<>>} @bd
  390. /setdevparams {pop pop} @bd
  391. /currentsystemparams {<<>>} @bd
  392. /setsystemparams {pop} @bd
  393. /currentuserparams {<<>>} @bd
  394. /setuserparams {pop} @bd
  395. /currentcolorrendering {<<>>} @bd
  396. /setcolorrendering {pop} @bd
  397. /ineofill {
  398.   dup type /arraytype eq 1 index type /packedarraytype eq or
  399.   {gsave newpath uappend intersectingpaths grestore}
  400.   {xyineofill}ifelse} @bd
  401. /infill {
  402.   dup type /arraytype eq 1 index type /packedarraytype eq or
  403.   {gsave newpath uappend intersectingpaths grestore}
  404.   {xyinfill}ifelse} @bd
  405. /instroke {
  406.   dup type /arraytype eq 1 index type /packedarraytype eq or
  407.   {gsave newpath uappend intersectingpaths grestore}
  408.   {xyinstroke}ifelse} @bd
  409. /inueofill {gsave newpath uappend ineofill grestore} @bd
  410. /inufill {gsave newpath uappend infill grestore} @bd
  411. /inustroke {gsave newpath dup @ismatrix{exch uappend concat}
  412.   {uappend}ifelse instroke grestore} @bd
  413. /setpattern {currentcolorspace 0 get /Pattern ne
  414.   {[/Pattern currentcolorspace]setcolorspace}if setcolor} @bd
  415. /makepattern {gsave concat <<>> copy dup newpath
  416.   gstate currentgstate /Implementation exch put grestore} @bd
  417. /rootfont {currentfont} @bd
  418. /startjob {pop pop false} @bd
  419. /=print {(%stdout)(w)file exch dup type /stringtype eq
  420.   {writestring} {save 3 1 roll 256 string cvs writestring restore}
  421.   ifelse} @bd
  422. <</Angle 0. /SpotFunction {} /HalftoneType 1 /Frequency 10.>> sethalftone
  423.  
  424. /letter { statusdict begin 0 setpagetype end } def
  425. /note { statusdict begin 1 setpagetype end } def
  426. /legal {} def
  427. /a4 {} def
  428.  
  429. %
  430. %  Create the page device dictionary
  431. %
  432.  
  433. /currentpagedevice
  434.   << /PageSize [792 792]
  435.      /MediaColor null
  436.      /MediaWeight null
  437.      /MediaType null
  438.      /InputAttributes <<>>
  439.      /ManualFeed false
  440.      /ImagingBBox null
  441.      /OutputType null
  442.      /OutputAttributes <<>>
  443.      /NumCopies null
  444.      /Collate false
  445.      /Duplex false
  446.      /Tumble false
  447.      /OutputFaceUp false
  448.      /Jog 0
  449.      /Separations false
  450.      /HWResolution [400 400]
  451.      /Margins [0 0]
  452.      /NegativePrint false
  453.      /MirrorPrint false
  454.      /Orientation 0
  455.      /CutMedia 0
  456.      /AdvanceMedia 0
  457.      /AdvanceDistance 0
  458.      /Policies <<>>
  459.      /Install {}
  460.      /BeginPage {}
  461.      /EndPage {} >> def
  462.  
  463. %
  464. %  Create the 'statusdict' dictionary
  465. %
  466.  
  467. /statusdict
  468.   << /product (Liberty Systems - PSI)
  469.      /processcolors 3
  470.      /setpageparams {4{pop}repeat}
  471.      /setjobtimeout {pop}
  472.      /lettertray {}
  473.      /setduplexmode {pop}
  474.      /settumble {pop}
  475.      /setpagetype {statusdict exch /pagetype exch put} >> def
  476.  
  477. %
  478. %  Initialize the global and user dictionary
  479. %
  480.  
  481. /globaldict true setglobal 200 dict false setglobal def
  482. /shareddict globaldict def
  483. /userdict 200 dict def
  484. globaldict begin
  485. userdict begin
  486. true limitaccess
  487. /Times-Roman findfont 12 scalefont setfont
  488. /=string 256 string def
  489.